
 <div id="content" class="clear">
 <div id="main" class="clear">
 <div id="head" class="clear">
 <h1>Welcome to EncoreAdmin!</h1>
 </div><div id="quick" class="clear">
 <div class="quickLink"> 
 <a href="<?php echo base_url('user/adduser');?>"> <img src="<?php echo base_url()?>img/ico/icoadduser.png" alt="Add user" /> <span>添加用户</span></a>
 </div>
 <div class="quickLink"> 
 <a href="<?php echo base_url('article/post');?>"> <img src="<?php echo base_url()?>img/ico/icowritearticle.png" alt="Write article" /> <span>添加文章</span></a>
</div>
<div class="quickLink"> 
<a href="<?php echo base_url('pic/post');?>"> <img src="<?php echo base_url()?>img/ico/icoaddimage.png" alt="Add image" /> <span>添加图片</span></a>
</div>
<div class="quickLink"> 
<a href="<?php echo base_url('manage/config');?>"> <img src="<?php echo base_url()?>img/ico/icomaintenance.png" alt="Turn on Service Mode" /> <span>网站设置</span></a>
</div>
<div class="quickLink"> 
<a href="#"> <img src="<?php echo base_url()?>img/ico/icosendnewsletter.png" alt="Send newsletter" /> <span>发邮件</span></a>
</div>
<div class="quickLink"> 
<a href="#"> <img src="<?php echo base_url()?>img/ico/icostats.png" alt="View statistics" /> <span>信息统计</span></a>
</div>
<div class="quickLink"> 
<a href="<?php echo base_url('manage/dbbackups');?>"> <img src="<?php echo base_url()?>img/ico/icobackup.png" alt="Backup database" /> <span>数据库备份</span></a>
</div>
<div class="quickLink"> 
<a href="#"> <img src="<?php echo base_url()?>img/ico/icobrowse.png" alt="Browse orders" /> <span>订单列表</span></a>
</div>
<div class="quickLink"> 
<a href="<?php echo base_url('manage/event');?>"> <img src="<?php echo base_url()?>img/ico/icoevent.png" alt="Add event" /> <span>事件列表</span></a>
</div>
<div class="quickLink"> 
<a href="<?php echo base_url('comment/index');?>">
<img src="<?php echo base_url()?>img/ico/icocomments.png" alt="View recent comments" /> <span>用户评论</span></a>
</div>
<div class="quickLink"> 
<a href="#"> <img src="<?php echo base_url()?>img/ico/icoviewwebsite.png" alt="View website" /> <span>Visit website</span></a>
</div>
<div class="quickLink"> 
<a href="#"> <img src="<?php echo base_url()?>img/ico/icopublish.png" alt="Publish website" /> <span>Publish website</span></a>
</div>
</div>
<div id="tabs">
<ul> 
<li id="li1" class="active"> <a href="#tab1" onmouseover="showtab('li1')">Active tab</a></li> 
<li id="li2"> <a href="#tab2" onmouseover="showtab('li2')">Second tab</a></li> 
<li id="li3"> <a class="last" href="#tab3" onmouseover="showtab('li3')">Third tab</a></li>
</ul>
<div class="tabsContent">
<div id="tab1"><?php echo $visitschart;?></div>
<div id="tab2"></div>
<div id="tab3"></div>
</div>
</div>
<table id="chart">
<caption>Sales statistics</caption>
<thead>
<tr> <td></td><th scope="col">Jan</th><th scope="col">Feb</th><th scope="col">Mar</th><th scope="col">Apr</th><th scope="col">May</th><th scope="col">Jun</th><th scope="col">Jul
</th><th scope="col">Aug</th><th scope="col">Sep</th><th scope="col">Oct</th><th scope="col">Nov</th><th scope="col">Dec</th></tr></thead>
<tbody>
<tr>
   <th scope="row">2009</th> 
   <td>45</td> <td>28</td> 
   <td>36</td> <td>32</td> 
   <td>38</td> <td>29</td> 
   <td>27</td> <td>33</td> 
   <td>39</td> <td>40</td> 
   <td>35</td> <td>30</td>
</tr>
<tr>
  <th scope="row">2010</th> 
  <td>25</td> <td>32</td> 
  <td>37</td> <td>36</td> 
  <td>30</td> <td>24</td> 
  <td>21</td> <td>27</td> 
  <td>34</td> <td>36</td> 
  <td>30</td> <td>40</td>
</tr>
<tr>
   <th scope="row">2011</th> 
   <td>52</td> <td>66</td> 
   <td>76</td> <td>70</td> 
   <td>65</td> <td>52</td> 
   <td>44</td> <td>60</td> 
   <td>72</td> <td>81</td> 
   <td>77</td> <td>82</td>
</tr>
</tbody>
</table>
</div>
  <div id="sidebar">
    <div id="summary" class="sidebox clear">
       <h1>信息统计</h1>
       <div class="boxContent clear">
       <dl class="clear">
         <dt>访问统计:</dt>
         <dd>846 525</dd>
         <dt>页面浏统计:</dt>
         <dd>5 434 125</dd>
         <dt>文章统计:</dt>
         <dd>64</dd>
         <dt>图片统计:</dt>
         <dd>2010-09-09</dd>
         <dt>产品统计:</dt>
         <dd>17 465,50 $</dd>
         <dt>订单统计:</dt>
         <dd>235,20 $</dd>
         <dt class="last">Recent order:</dt>
         <dd class="last"> 
         <a href="#">#5843215</a>
         </dd>
       </dl>
       </div>
    </div>
    <div id="calendar" class="sidebox clear">
       <h1>事件日历</h1>
       <div class="boxContent clear">
       <div id="currentMonth"> 
	       <a id="prevMonth" class="button small" href="#">&laquo;</a> 
	       <span>September 2010</span> 
	       <a id="nextMonth" class="button small" href="#">&raquo;</a>
       </div>
       <table cellpadding="0" cellspacing="0">
          <thead>
             <tr><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th></tr>
          </thead>
          <tbody>
         <?php echo $mydate;?>
        </tbody>
        </table>
<h2>Sep, 15-17</h2>
<p>Event description goes here...</p><h2>Sep, 27-28</h2>
<p>This is another event description</p>
</div>
</div></div></div>
<div id="push">&nbsp;</div>
</div>
<script>
$("#tab2").css('display','none');
$("#tab3").css('display','none');
 function showtab(id)
 {
	 switch(id)
	 {
	 case 'li1':
		 $("#tabs").find("li").removeClass("active");
		 $("#li1").addClass("active");
		 $("#tab2").css('display','none');
		 $("#tab3").css('display','none');
		 $("#tab1").css('display','block');
		 break;
	 case 'li2':
		 $("#tabs").find("li").removeClass("active");
		 $("#li2").addClass("active");
		 $("#tab1").css('display','none');
		 $("#tab3").css('display','none');
		 $("#tab2").css('display','block');
		 break;
	 case 'li3':
		 $("#tabs").find("li").removeClass("active");
		 $("#li3").addClass("active");
		 $("#tab2").css('display','none');
		 $("#tab1").css('display','none');
		 $("#tab3").css('display','block');
		 break;	 	 
     }
 }  

</script>
